package com.rentong.wx.cust.dao;

import com.rentong.wx.cust.domain.CustGuanzhuEntity;
import com.rentong.wx.cust.dto.CustGuanzhuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.math.BigDecimal;
import java.util.List;

/**
 * 
 * 
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:32
 */
@Mapper
public interface CustGuanzhuDao extends BaseMapper<CustGuanzhuEntity> {

    List<CustGuanzhuVo> getCustGuanzhuList(@Param("type") Integer type, @Param("custId") Long custId);

    List<CustGuanzhuEntity> getCustGuanZhuByCustidAndCid(@Param("custId") Long custId, @Param("ids") List<Long> ids);

    void deleteById(@Param("custId") Long custId, @Param("cId") Long cId);

    BigDecimal getGuanzhuNum(@Param("custId") Long custId);

    BigDecimal getFensiNum(@Param("custId") Long custId);

    BigDecimal getCustGuanzhuByCustId(@Param("custId") Long custId, @Param("cId") Long cId);



}
